Current flows from the source towards the sink
I'm not sure what you are trying to ask here. The voltage difference between the 5V rail and GPIO pin is 1.7 because 5 - 1.7 = 3.3V

When GPIO voltage is measured it is measured from that pin to ground, which is 3.3V,.