1. Use the AgentID to perform getDeviceID()
2. Use this device ID with GetPhysicalDeviceInformation()
3. The GetPhysicalDeviceInformationResponse will include otherLogicalDeviceList. The item on this list will be the device ID of the station ID where the agent is logged in.
Alternatively, as the application is logging the agent in, it should be able to store the station ID for future reference.
Alternatively, for the case where the application is not logging in the agent, if you place a Call Control monitor on a huntgroup, you will receive AgentLogin events whenever an agent with that skill logs in. These will include the station ID where the agent is logging in.