Just take the side cover off, (normally the left cover as you look at the front of the PC).
Look at the motherboard, you will see the battery, remove it whilst the PC is turned off, check the number on it, replace it, go and buy one, then remove it again, put the new one in and your problem should be solved.
The make of the PC does not matter, the same applies to all.