Solidworks has a built-in command to find properties of your design , including the volume.
In the toolbar, select the Evaluate tab. Then, select Match Properties.
Solidworks will launch the Mass Properties dialog box, which displays useful information, including the volume.
For more details, see the Solidworks help page.
https://learnsolidworks.com/solidworks-tricks/measure-surface-area-in-solidworks