Scripting to get click position and orientation in an object

Hi, does scripting offer the possibility of getting the position and orientation of a point in an object?

My end goal is to click on a point on a mesh, and on that point, get the orientation of the face relative to it, and the global position.

Thank you!