To detect JRE version, Basically you need to employ two approaches for IE and NS.
Interesting. I don't use IE much, so I never noticed this. But the good folks at Apple have an article on how to detect plugins in IE. The example shown there only detects a few plugin types, but it looks like it can be extended to cover Java as well.