Hi There,
Probably best to use the serial-number. That is what PnP uses to correlate when a device calls back home.Plus some of the NEDs already read and cache it under /devices/device/platform/serial-number
The query API can be leveraged here. Please note that the query API is asynchronous. So if synchronous behaviour is desired perhaps write an Action for this.
Thanks.