get_pkg_versions function

Extract Package Version Information