You can tell a lot about memory just by the packaging. The various DDR's have different pin and notch configurations such that you can't put DDR2 in a DDR3 slot and vice versa.
Neieus is right about CPU-Z, but only if you can get the Ram working in a machine.