can I understand which way sound comes from?
Yes, the most common way is with phase correlation, which takes some amount of processing power. Basically you have two (or more) microphones a known distance apart and measure the time difference you see between the same sound in the different microphones.

IMO using amplitude differences would be very inaccurate.