Hey Kushal, you can use Browser command getPageSource() to get the source code of existing page. getPageSource() method gets the existing page source and return a String output. You can use following command to get the page source:
String Page_Source = driver.getPageSource();