The fail2ban-client status JAIL
command shows a list of IP addresses currently banned by that jail, but it's a bit laborous to go through every jail like that, and it also won't show you IP addresses that are already released from the jail.
The best way to gather the knowledge you need is to search for the IP address from the Fail2Ban logs:
# grep "192.0.2.138" /var/log/fail2ban.log
fail2ban.actions [388]: NOTICE [sshd] Ban 192.0.2.138
fail2ban.actions [388]: NOTICE [sshd] Unban 192.0.2.138
fail2ban.filter [388]: INFO [sshd] Found 192.0.2.138 - 2020-12-24 10:52:42
fail2ban.filter [388]: INFO [sshd] Found 192.0.2.138 - 2020-12-24 10:52:43
fail2ban.filter [388]: INFO [sshd] Found 192.0.2.138 - 2020-12-24 10:52:47
fail2ban.filter [388]: INFO [sshd] Found 192.0.2.138 - 2020-12-24 10:52:51
fail2ban.filter [388]: INFO [sshd] Found 192.0.2.138 - 2020-12-24 10:52:56
fail2ban.actions [388]: NOTICE [sshd] Ban 192.0.2.138
This will not only show which jail banned the IP but also why – with all the timestamps you can use to find the corresponding events from the logs Fail2Ban is monitoring.