How to get the surface type, and physical material with a projectile in C++?(No Linetraces)

This is referring to the object I am hitting correct? Not the projectile I am using.