mViewPager.getCurrentItem()
or you can use event for this:
ViewPager.setOnPageChangeListener(OnPageChangeListener listener)
References
https://stackoverflow.com/questions/8258759/getting-the-current-position-of-a-viewpager
https://stackoverflow.com/questions/8117523/how-do-you-get-the-current-page-number-of-a-viewpager-for-android