Ignore or detect backfaces for raycasts

Is it possible to ignore backfaces when doing a raycast, or alternatively when a hit is detected determine the ray hit a backface? Can I access the vertex positions of the triangle that was hit so I can determine the winding?