Sai, in BATCH esiste un comando che si chiama ls, quindi non c'è mai da essere sicuri...

Potresti processare ogni cartella in %PROGRAMFILES% e vedere se contiene un file di nome photoshop.exe

Guarda le classi System.IO.DirectoryInfo e System.IO.FileInfo...