libhd is a hardware detection lib.
libhd-5.12
Get list of SCSI controllers
Get primary display controller