If you are simply wanting to detect the presence of an ODBC connection, the registry is a pretty easy method.

 Code:
$odbcName = "MS Access Database"			; SET THIS TO THE NAME OF THE ODBC YOU WANT TO CHECK FOR
$logfile = "\\share\path\to\log\ODBC_LOG.txt"		; SET THIS TO THE PATH OF THE LOG FILE YOU WOULD TO WRITE TO

If KeyExist("HKCU\Software\ODBC\ODBC.INI\"+$odbcName)
   $nul = RedirectOutput($logfile)
   ? @Date+" - "+@Time+" - "+$odbcname+" Found on "+@WkSta+" under user "+@UserID	; CAN MODIFY THIS TO WHAT EVER YOU WOULD LIKE TO BE LOGGED
   $nul = RedirectOutput("")
Endif