execute the SQL query "SHOW PROCESSLIST;"
A table with the following fields is returned:
Id, User, Host, db, Command, Time, State, Info
I assume the Id, User, and Host fields will enable you to solve the problem. note that the mysql table that this information is/might by stored in is not made available to us (it must be a MySQL internal thing).