package versions package
Returns a list of all the version numbers of package for which information has been provided by package ifneeded commands.
See also:
Tcl syntax help - Category Command