How to extract Windows product key from the Microsoft Data Management table

Extract the pre-installed Windows product key from the Microsoft Data Management table.