Sitecore OOTB Role to maintain user is Sitecore Client Account Managing. So to check who all can manage user, we should be checking which all users are associated with this role.
Role: Sitecore Client Account Managing
Gives the user access to maintain users, roles, and domains in the Access Viewer, the Domain Manager, the Role Manager, and the User Manager ...
There is no OOTB functionality to get users that can remove other users, but you can use some workarounds.
I suggest using an API call below to check if you have enough permissions to call the User Manager application for the current user:
Then you can go through all users and you can use ...
Sitecore Client Account Managing is the right role to add/remove users.
From Sitecore Documentation :
Gives the user access to maintain users, roles, and domains in the
Access Manager, the Domain Manager, the Role Manager, and the User