@SERIALHW[d:]:  Returns the hardware serial number of the specified disk drive. The drive letter must be followed by a colon.

 

If the argument is a partial filename without a drive, @SERIALFW will expand the filename to get the drive.

 

Examples:

 

echo %@serial[D:]

WD-WCC6Y4FTRH82

 

See also: @SERIAL and @LABEL.