How He does, we may never understand. This is an ability that only God has. None of His creatures have this ability. They can know only if it was told to them first. God is Unlimited With Regard to Space Space, like time, is a product of Creation.
Space is what all creatures, physical and spiritual operate in.
We are limited because this is the way God created us. Spiritual creatures operate in a different dimension than we do, yet they can only be one place at a time. Satan and demons are limited also because they too are creatures. All are spatial beings. They are located in a certain place.