Download and run CPU-Z
It will give you the specs of your current ram.
If the ram for sale matches the specs and you have a slot to put it in, you are likely ok.
The relevant specs are voltage, format( DDR2/3 or laptop ) and speed.
If the speed differs, you will operate at the slowest.