How to use Python to retrieve the names and versions of built-in modules ?

Hey - any luck with that? I’m looking for a solution to a similar problem. I’d like to be able to check with Python what plugins are installed and their paths.