Office 2007 predates modern account-based licensing, but if you ever registered it online:
If you've previously installed Office 2007 on your computer, you may be able to retrieve the product key from the installation files. To do this:
Look for DigitalProductID – but it’s encrypted, so the tools above are better.
If you've lost or misplaced your product key, try the following methods: