Polaron Beams
Memory Alpha explains that Borg Cubes have Polaron Beams which were :
capable of scanning through Federation shield technology
We witness in VOY 'Scorpion' this scanning occurred (we observe a green light scanning through the bridge). It is likely that the Borg determined their weapons complement using this scan they had run a very short time ago, knowing they would have detected weapons fire from Voyager given its position in Borg Space.
The designations for these weapons provided by Seven aren't made clear as to whether they are the Federation or Borg classifications, so they could have determined the yield by scanning the torpedoes' quantity of explosive material (photopic energy I believe) and categorised it based on their own scales.
Alternatively, such information could have been assimilated during Wolf 359 where several Federation ships were destroyed and many Starfleet officers assimilated. Such torpedoes likely would have at least been in development then and, considering Starfleet was facing the Borg, it is possible such torpedoes may have been fired at the cube in question, meaning relevant information may have been assimilated.