StreamPosition

StreamPosition[stream]
returns the current position in a stream as an integer.