CMD command to check connected USB devices
With powershell, you can use the command :
Get-PnpDevice -PresentOnly | Where-Object { $_.InstanceId -match '^USB' }
You can use the wmic command:
wmic path CIM_LogicalDevice where "Description like 'USB%'" get /value
You could use wmic command:
wmic logicaldisk where drivetype=2 get <DeviceID, VolumeName, Description, ...>
Drivetype 2 indicates that its a removable disk.