Get-PhysicalDisk | Select -Prop DeviceId,FriendlyName,SerialNumber

C++
Get-PhysicalDisk | Select -Prop DeviceId,FriendlyName,SerialNumber
Source

Also in C++: