When you try to activate windows, you'll get an error message saying the CD key is already in use. There will be a phone number, give it a call and tell the person that you're transferring the OS onto a new system and that the old one will not be used any more.
They'll give you an authorization key.