OEM can only be installed on one PC, and can't be installed on a new machine. A new machine is classed as any machine that isn't based around the motherboard that it was originally installed with.
Retail can only be installed on one machine at a time, but if you upgrade, then you can remove it from the old machine and then install it on the new one.