From within a servlet, you can invoke the ServletContext.getServerInfo() method as follows:
String thisServer= getServletConfig().getServletContext().getServerInfo();
If you are using JSP, you can use this expression:
<%= application.getServerInfo() %>