1.Currently there is no API available to access participant device to check the information related to media devices.
2.Using app-hosted media solution (local media) to have the bot subscribe the media stream. But so far it is not allowed to archive the media stream unless this is compliance recording bot.