linux hdparm

C++
# To get information about hard disks, run the following:
hdparm -I /dev/sda
Source

Also in C++: