How do you find out the Pan ID of an xbee using just a gateway

I would like to find the PAN - ID of a device I can’t access physically. I have an x2e in the area.

Do you have any advice?

In a python script on the gateway you can use ddo_get_param(). See this wiki page:

http://www.digi.com/wiki/developer/index.php/Module:zigbee#ddo_set_param.28.29