Checking instances of scripts in wp_head

wp_script_is() would tell you is the script is enqueued but you’d need to know the handle.

If you really need to know if the script is enqueued you will probably have to crawl the $wp_scripts global for the actual file name.

Try:

global $wp_scripts;
var_dump($wp_scripts); // after the wp_enqueue_scripts hook

That will dump a huge object but the information you need is in there.