Summary: Use PowerShell to find all devices that are connected to a computer.
How can I use Windows PowerShell to list all devices that are connected to a computer?
Use the Get-PnpDevice cmdlet and the -PresentOnly switch. Here is an example:
Get-PnpDevice -PresentOnly