win32gui.GetCaretPos

int,int = GetCaretPos()

Returns the current caret position