Normally people tell you about:
ansible -m setup all
But this thing displays only facts from setup module, and not the variables from inventory and/or group_vars.
setup
Generally, there is no way. But if you know, there is no user/pid namespaces involved, there is a simple heuristic.