Hi Daniel, I hope you're doing well!
What do you mean by device ID?
Every connected device in a ZigBee or IEEE802.15.4 network is has a short address, which could be considered the device's ID. In the case of ZigBee, this short address is randomized, and in IEEE802.15.4, it can be specified either by the coordinator (if requested by the joiner device), or by the joiner device itself.
If I misunderstood your question, please let me know.
Best regards,
Sebastian