If the image is properly tagged as per the OpenContainer spec, you can also get the value of the label org.opencontainers.image.versionlike this:
$ docker inspect \
--format '{{ index .Config.Labels "org.opencontainers.image.version"}}' \
image:tag
Thanks to this answer here showing how that can be done.