I want to get the Serial number of an HDD and its informations like
getting
the partition identification
strings like "disk1s0" and the volume name etc.
Also Is it possible to get the serial no of the HDD which is
connected via
USB / Firewire?
This is off topic for this list.
Research what is available via the io registry (man ioreg). You can
use IOKit framework to search the io registry.