You can query WMI to get a list of your drives volume IDs like so:
Get-CimInstance -ClassName Win32_Volume | Select-Object -Property DriveLetter, DeviceID, SerialNumber, Capacity
You can query WMI to get a list of your drives volume IDs like so:
Get-CimInstance -ClassName Win32_Volume | Select-Object -Property DriveLetter, DeviceID, SerialNumber, Capacity