Can you give me a virus code that can destroy computer hardware?
Viruses by nature destroy software, not hardware. But, you could
run a "virus" that was an infinite loop, that did not allow for its
termination, and that could possible lead to heat issues for the
hardware. Possible damaging it.