Here, this is just an addition to the previous script.
import bpy
mesh = bpy.data.meshes['Cube']
for face in mesh.faces:
print "Face"
if(mesh.faceUV): # Test if the face is textured.
for i in xrange(0, len(face.verts)):
print "X: ", face.uv[i][0], "Y: ", face.uv[i][1]
if face.uvSel[i] == 1: # if it is one, then it is selected
print "Selected"
else:
print "Not Selected"
One thing that I noticed is that the status of selected or not is not recognized until the main window where the object is being edited is turned from edit mode back to object mode. Maybe this is a problem from them getting rid of UV Face Select mode, or possibly there is a way to update the data that I do not know about. One solution could be to switch back to object mode in the script and then after you are done with the data, switch back to edit mode.
dergemkr