How to know how was my GTD order filled?

Suppose currently, the bid and ask are 100 and 105.
Suppose I place a buy order of 10 shares at 101 and it gets executed at 101 quickly. Now there are two possibilities:

  1. When my order reached the exchange, the bid and ask were 100/105 at that moment too, hence my order was added to the order book. A seller placed a market order and my order was executed against that.

  2. When my order reached the exchange, the bid and ask changed to 99/101. So my order was filled against a resting order at 101.

Note that in the first case, my order was added to the order book and then it was filled.
But in the second case, my order was filled directly without being added to the order book.

My question is, how to distinguish between the two situations from the order fill information?

One can’t distinguish it, it is just a Limit order for you.