How do I view a list of devices from the command line in Windows
Solution 1:
You do this by using the devcon.exe utility.
It ships with Windows Driver Kit. Select just the Tools in the installation wizard if you do not need the rest of the kit.
Refer to The DevCon command-line utility functions as an alternative to Device Manager for specific commands. I imagine you would start with something like
devcon find *