(imported comment written by brolly33)
you are close and on the right path:
Q: (exists keys “Software\JavaSoft\Java Runtime Environment\Security Baseline” whose (exists values whose(name of it = “1.7.0” AND it as string as lowercase = “1.7.0_25” as lowercase ) of it) of current user key (logged on users) of registry)