Add examples of how to find the package version

This shows how to make it easier to do version pinning in pkg states.

Resolves #13792.