Pull List of All Users with a Specific Device Type

I kind of urgently need to export a list of all of my users who have a specific device type associated with their account but cannot figure out how that would be done. I don’t see how it can be done in the console but also can’t figure out how to write a script that will do it. Any help MOST appreciated!