If they are both the same type (IDE,SATA) hard drives then this shouldn't be a problem(Assuming they are) Simply open up the case on both the pcs and pull out the power lead and ribbon cable on both hard drives then reconnect your new hard drive to the old hard drives wires and vice versa if you want to put your old one in the other pc.