Here, this is just an addition to the previous script.
mesh = bpy.data.meshes['Cube']
for face in mesh.faces:
if(mesh.faceUV): # Test if the face is textured.
for i in xrange(0, len(face.verts)):
print "X: ", face.uv[i], "Y: ", face.uv[i]
if face.uvSel[i] == 1: # if it is one, then it is selected
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.