Acquiring the device id within the agent

Anybody knows how to get the device id of the imp from the agent side?

Appreciate your response

Thx
S