I am fairly sure you cant swap the drives unless the two PCs are identical. (as in Motherboards)
If they are identical and it has a faster processor and more ram the hard-drive may be swappable.
You may be also fitting to larger hard drive to the PC you have been given.
More info is needed on the two PCs and the Operating Systems.