The driver itself doesn't support such a complicated check. However, you could use the following method:

Allow the driver to always inject into target.exe. But in DllMain of your hook dll check if check.exe is running. If it's not running, simply return TRUE and don't do anything else in DllMain. This way your hook dll is loaded, but is doing nothing at all.