You can try this:
WebElement element = driver.findElement(By.tagName("script"));
String htmlCode = (String) ((JavascriptExecutor) driver).executeScript("return arguments[0].innerHTML;", element);
P.S. is in Java but you can do same in C# with some small edit.