Get volume and surface area of STL file

how to import an stl file and to detect its surface area and volume

You can fine explanations in the documentation on how to import an stl model as a segmentation.

Then go to the segment statistics module to compute volume / areas. Again, I invite you to read the documentation of this module.