Given 3 points $A, B, C$. Take the cross product $AB \times AC$. This gives you the normal vector to the plane. If this normal vector points to you, then $A, B, C$ is in a counter clockwise position. You can check if this vector is pointing away from or towards you by taking the dot product of that vector and the vector in the direction you are viewing.