Open the document in Word
then press ALT+SHIFT + F11. The document will be opened in the script
editor and will look something like:

From the edit
menu - select FIND and search for 'password'

The search routine will take
you to the area of the document where the password is stored -

The bit we are
interested is the unique sequence of digits in the middle of that line,
highlighted below in red.
<w:UnprotectPassword>5F23E53C</w:UnprotectPassword>