Getting location of the object with "follow path" and "track to" constraints -- using Python
scene.objects['Cube'].matrix_world[0][3]

scene.objects['Cube'].matrix_world[1][3]

scene.objects['Cube'].matrix_world[2][3]

bpy.context.active_object.matrix_world[0][3]

bpy.context.active_object.matrix_world[1][3]

bpy.context.active_object.matrix_world[2][3]