You can use the userName() function to get the current user. Or if you require more information about the user, you can look into using the User Profile Web Service.
Anson Hidajat
Qdabra® Software/ InfoPathDev.comThe InfoPath Experts – Streamline data gathering to turn process into knowledge.™