How to check RAM compatibility

I am going to upgrade my RAM from 1GB to 2GB. What are the things I need to check in my system to ensure that I am purchasing the right RAM compatible for my desktop pc and also the brand or type of RAM that I should get that is compatible with my system?

