Step 1. Type CMD in the search box, right-click it, and choose Run as administrator.
Step 2. Check your Office version and type the following command lines.
Take Office 2013 as an example:
32-bit Office and 32-bit Windows: cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus
32-bit Office and 64-bit Windows: cscript "C:\Program Files (x86)\Microsoft Office\Office15\OSPP.VBS" /dstatus
64-bit Office and 64-bit Windows: cscript "C:\Program Files\Microsoft Office\Office15\OSPP.VBS" /dstatus
Step 3. Press Enter and check the Office product key.