It is well known that the trace of the regular representation $\rho$ of a group $G$ 'detects' the identity element of the group. More precisely, we have
$$ Tr(\rho)(g) = \begin{cases}|G|&\mbox{if }g=e\\ 0&\mbox{otherwise.}\end{cases} $$
Now, if $G$ is Abelian, this can be used to detect arbitrary elements in $G$ as
\begin{equation}\label{Equation 1} Tr(\rho)(h^{-1}g) = \begin{cases}|G|&\mbox{if }g=h\\ 0&\mbox{otherwise.}\end{cases} \end{equation}
The key here is that every irreducible representation of $G$ (in this case) is one dimensional so that $Tr(\rho)(h^{-1}g) = \rho(h^{-1}g)$ can be written as a linear combination of irreducible representations of $G$.
My question is the following.
Is there an analogous way to detect arbitrary elements when $G$ is non Abelian
EDIT: Let me add some context to why I am asking this question. The motivation comes from Artin $L$ functions (over $\mathbb{Q}$ for simplicity). Consider the Riemann zeta function $\zeta(s)$ and suppose, for a fixed $a,N\in \mathbb{N}$ with $GCD(a,N)=1$, I am interested in the function $$ L(s):=\sum_{m\equiv a\mod N} \frac{1}{m^s}. $$ Then it is well known (and in fact a consequence of the first of the two equations above) that
$$ L(s) = \frac{1}{\varphi(N)}\sum_\chi \chi(a)^{-1}L(s,\chi) $$ where $L(s,\chi)$ is the Dirichlet $L$ function of the character $\chi$ modulo $N$, given by
$$ L(s,\chi) = \sum_{n=1}^\infty \frac{\chi(n)}{n^s}, $$ and the summation runs over all characters of $(\mathbb{Z}/N\mathbb{Z})^\times$.
Something very similar can be done for other number fields as well (although I have not done the exact calculations, I think it should be possible to do the same for other Dirichlet/Hecke $L$ functions too). Now I am interested in replacing $\zeta(s)$ with Artin $L$ functions of representations of higher dimensions and see if something similar is possible. I hope this makes my question clear.
If I understand your question correctly, the point is that characters are class functions, so in a non-abelian group you will not be able to distinguish two distinct elements that are conjugate.