Why do you need to do this from a POJO? And what do you mean by "static safe"?
If you have to, then I suppose you would need to parse web.xml yourself rather than having the servlet container do it for you. Bit of an odd requirement though.
Since the app name doesn't change over time, you can retrieve it at web app startup time (using a context listener), and store it in some object in a public static field.