Object Direction/Location

I was wondering if anybody is able to help me. I need to be able to find the location of an object relative to the direction the player is facing. The reasoning is I need to spatialize sound in an external application. so if the object is to the left of the player I need to tell the external to pan accordingly