At this point, it all depends, we need more information.
First, we need to know what CPU each computer has, and the name of the motherboard.
If you can provide us with that information, then we can tell you if most if not all the parts will be compatible or not. if you cannot provide us the name of the motherboard, then maybe tell us what the brand and name of the computer if its not an custom built.