Your friend needs to contact tech support and tell them his PC crashed, he replaced it and he needs to install the software on his new PC. They may or may not go for it, but that's the only way. If they go for it, they will give you another activation code based on the same serial number and the hardware footprint of the machine it is currently installed on...yours.
When he installed it, he probably had to register online. When you register, they give you an activation code based on the serial number and the PC's hardware footprint. From that point on, that software will only work on that PC. Uninstalling it from that PC does nothing. Could be that you just need to buy a another license, which may be less than purchasing the entire program.