Where do you want to detect it? In SQL Server or elsewhere?
To find sessions that are connected with ODBC, you can use this query:
SELECT session_id
FROM sys.dm_exec_sessions
WHERE client_interface_name = 'ODBC'
AND program_name NOT LIKE 'SQLAgent%'
I've added an extra filter, since I don't think you want to kill Agent jobs.
I suspect that you will need further refinement, since killing sessions only based their client API sounds dubious.