I have implemented something similiar to lspci command, and it gives me this output;

I am seeing IDE controller whether or not I set up a harddisk in qemu. Which makes sense, because IDE controller is there even tough there may not be any disk connected.
How can I know whether or not the disk is actually connected to IDE controller?
Best Regards,