You can take a look at this script. Not sure it does what you want, but does a LOT

My Computer Info - for Help Desk use PART 4