For Postgres this would be something like:
select tc.table_schema||'.'||tc.table_name as referencing_table,
ctu.table_schema||'.'||ctu.table_name as referenced_table_name,
rc.update_rule,
rc.delete_rule
from information_schema.table_constraints tc
join information_schema.referential_constraints rc
on tc.constraint_catalog = rc.constraint_catalog
and tc.constraint_schema = rc.constraint_schema
and tc.constraint_name = rc.constraint_name
join information_schema.constraint_table_usage ctu
on ctu.constraint_catalog = rc.unique_constraint_catalog
and ctu.constraint_schema = rc.unique_constraint_schema
and ctu.constraint_name = rc.unique_constraint_name
where tc.table_name = 'foobar'
and tc.table_schema = 'public'
and tc.constraint_type = 'FOREIGN KEY'
But that won't work on MySQL