How to get the Hard Drive serial number
The Win32_PhysicalMedia class suggest that
wmic path win32_physicalmedia get SerialNumber
should do the trick.
However, the WMI struct holding the DiskDrive information
http://msdn.microsoft.com/en-us/library/aa394132%28v=vs.85%29.aspx
specifically mentions that
SerialNumber: Number allocated by the manufacturer to identify the physical media.
Windows Server 2003 and Windows XP: This property is not available.
I know of no other way to obtain it, sorry.
Cheers,
Press Windows Key + R
type
msinfo32.exe
It will show details of almost everything in the system. Locate to storage and find the details.
Use below powershell script to get the serial number of hard disk.
Get-WmiObject Win32_PhysicalMedia | Format-Table Tag, SerialNumber