My advice is to look at the mother board for information. If you have decided on the cpu you want make sure the motherboard has the right cpu socket for it.
So look at the motherboard stats from their website, that will tell you what brand and sockets it supports.
Again with the ram it will tell you what type of ram, what speed and how much you can put in it.
Hope this helps you.