There is a Selenium WebDriver command for get the window position.
Activity