How to transfer a Microsoft license
Please refer to the software license terms to determine whether you may transfer a software license to another computer. When it is allowed, the product must first be removed from the previous computer. You may be required to complete the activation process on the new computer by contacting the Activation Center.
If activation is required, you will be presented with the Activation Wizard which will walk you through the activation process.
With Office 2010,system builders can offer two different license types: new Product Key Cards (PKCs) and Traditional Discs. Visit this site to see Product Key Cards vs Traditional discs
For Windows 7 license, you may refer to this post at Microsoft Community Transfer Windows 7 to another computer