Having another pc's windows hdd on another pc isn't illegal at all, it's common for troubleshooting. The reason being he's not using the software nor the key. But if he were to boot to that hdd, if it's an oem key it will deactivate itself anyways. If it's retail then it's transferable and won't matter. So either way, you don't have to do anything.