The version is in an inventory table and the company is assigned via a resource association. To find this out, we can view the Software Release in the Resource Manager:
In the Resource Manager window, we can see that there's a resource association we're probably interested in:
Resource associations are defined through a parent-child relationship in the ResourceAssociation table, so somwehere in there is a relationship between the Software Resource (Inv_Software_Release or vRM_Software_Release_Item) and the Guid of a record in RM_ResourceCompany (or vRM_Company_Item). That relationship with have a ResourceAssociationTypeGuid of the "Software Component to Company" Resource Association's Guid. You can find the value in Settings.
To view the full list of resource associations, you can use the Tasks -/ Resource Association Grid feature, but we already know the version is in Inventory, so let's look at View -/ Inventory.
There's not a lot of inventory for a Software Resource, but the Software Component data class seems to have the version information:
The Status tab tells us that the table is Inv_Software_Component, so a join to the _ResourceGuid column in that table should do the trick.
I know I didn't just give you the answer, but I hope this helps.