Why reinvent the wheel? If I understand your basic needs, you are wanting a program to provide you with a inventory of your computer assets. You are basically describing a database. There are dozens of commercial, and some free, programs out there to maintain inventories of lists.
Yes you could write your own program which provides you with these features but why??