Yes, you can simply use Snmp.discoverAuthorititiveEngineId to discover the engine ID of a SNMP entity.
Snmp.discoverAuthorititiveEngineId