Apple - How can I see which macOS version is installed on an external disk, without booting into it?
You can read the SystemVersion.plist on that particular volume-
/Volumes/<volume_name>/System/Library/CoreServices/SystemVersion.plist
If there's a valid, bootable system on it, then it will be listed in System Preferences > Startup Disk, with its version number.