This Collective Sphinx extension, collective.sphinxextexternalpackageversion, shows the version of an external package through a special syntax in the documentation.
You can find the documentation at the following URL:
https://collective-sphinxextexternalpackageversion.readthedocs.io/en/stable/