Home single song mastering can be done using Final Mix, Ozone, and T-Racks. These are popular because everything you need is prepackaged together with presets to tweak.
If you read around Waves is also popular high end but expensive.

Home multiple song album/cd mastering can be done using Sony software - I think it's Sony Architect or something like that and probably some others.

Real mastering is done by a mastering engineer. They polish the sound. They also embed the codes and make sure all is industry standard for you. Cost varies depending on who you get.

Using any of the above - the better the mix the better the master.