hwinfo: re-added disks, little bit of refactoring

I would avoid global variables. Can it be turned into function parameter with some default value?