10 So he said, "I heard Your voice in the garden, and I was afraid because I was naked; and I hid myself."
11 And He said, "Who told you that you were naked? Have you eaten from the tree of which I commanded you that you should not eat?"
12 Then the man said, "The woman whom You gave to be with me, she gave me of the tree, and I ate."
13 And the LORD God said to the woman, "What is this you have done?" The woman said, "The serpent deceived me, and I ate."
When God asked: "Where are you?" He was not asking for their geographical location. He knew where they were.
The question was addressed to their consciences. God was in effect saying: "Now, that you have disobeyed My voice, where are you now spiritually in relation to Me?"
God confronted them with their sin and wanted them to repent and own their sin and confess it openly to Him. Instead of doing that, they passed the buck, they shifted the blame.
Adam blamed Eve for their Fall, but ultimately blamed God of it all. He said: "The woman whom YOU gave to be with me, she gave me of the tree, and I ate."
As if saying: "If only YOU did not give me Eve, I would not have eaten the fruit which You forbade me to eat." The woman in turn did not fully own up to her sin by blaming the serpent.