Version badge of installed software inside an image?

Hi all,

I use automated builds much. Now I want to add badges to readme files displaying the current version of installed software inside certain images.

Is there a possibility to achieve this?

Cheers
Dennis