Get ModelId from MQTT

Hi,
is it possible to get the ModelId by the mqtt, with the given zigbee-id?

How gets, for example the hass.io integration, all the information about the device (modelid, model name, …)?

BR
hasiflo