If you can get a HitResult structure then try this
You should be able to get your surface type from the material of the hit component.