Context

Context[symbol]
yields the name of the context where symbol is defined in.

Contexts are not really implemented in Mathics. Context just returns "System`" for built-in symbols and "Global`" for user-defined symbols.