You may need to buy a new copy in a total destruction case. Or if you can convince Microsoft of the problem, and get the exact same parts, they may allow you to reuse the license, but it's not a sure thing.
The only part that really matters is the motherboard. The license is tied to that. Microsoft views a new motherboard as a new computer. So you can pretty much upgrade everything without having an effect.