We can find the serial numbers of various hardware devices using WMIC. You can find the commands below. These commands can be executed from Windows command prompt.
Get serial number of RAM chips.
wmic memorychip get serialnumber
This command lists serial number for each RAM module installed on the computer.
Get serial number for hard disks
wmic diskdrive get serialnumber
Get serial number for mother boards
wmic baseboard get serialnumber
Get Serial number for cdrom drive
wmic cdrom where drive='d:' get SerialNumber
Replace ‘d:’ with the drive letter for the cdrom on your computer.