I find this question, but it uses command line, and I do not want to call a Python script in command line using subprocess and parse HTML files to get the font information.
Have a look at PDFlib, it can extract font info as you require and has a Python library you can import in your scripts and work with it.