Oh got it.
First you need to download Windows.Data.Pdf dll and import to studio.
Windows.Data.Pdf class support following methods:
Then you can check using bool IsPasswordValid or CheckPdfProtection or simply using IsOpenedWithFullPermissions
For the reference: