The source answer here is not usable, so here is the general picture instead.
A software audit is usually done with a dedicated inventory tool rather than anything manual. The main categories are:
Which is right depends on scale. For one machine, a simple system information tool is enough. For an organisation, you need something that can report centrally and track licence entitlements — and you should confirm it supports your operating systems and any virtualised environments before committing.