Depends on your operating system. A 32-bit system will never be able to use/address more than 3GB of RAM, you need a 64-bit OS to do that.
This OS mean everything not just hardware. So if your running a 32 bit 2 GB should be good since there is no 1.5 GB of ram and having 2 GB and 1 GB sticks will be bad news since Latency will be off and timing and it will bottle neck your ram AKA make it run like shit.
Also it good to use the same type of ram (like per made sets) since everything will be synced up. Just trying to say it's not good to mix match.