More precisely, I am given a function $f:G\to H$ with the promise that it is a homomorphism. Is there an easy way to determine which homomorphism it is without looking through all of its values?
For example, when $G=\mathbb{Z}_2^n$ and $H=\mathbb{Z}_2$, a homomorphism $f$ is entirely characterized by an element of $\mathbb{Z}_2^n$, $s\in \{0,1\}^n$, such that $f(x)= s\cdot x$ where $\cdot$ is the inner product
($s_1x_1+s_2x_2+\dots+s_nx_n$).
I would be satisfied by an answer for abelian or cyclic groups.
Posting Arturo's comment in community wiki, because I think this is what the OP was actually looking for. (Not that this will lead to the question having an accepted answer, since the OP hasn't been seen for over a year.)
If I understand correctly what you want, you "only" need to know the value of $f$ at a minimal generating set. In your example, your element $s$ encodes the values of $f$ at the "basis" of $G$, the vectors $e_i$. If you know $f$ is a homomorphism, and you know its values at each element of a generating set, then you know its values, in principle, at every element of the group (this is exactly analogous to the fact that if you have a map between vector spaces, and you know it is a linear transformation, then knowing the value at a basis completely determines the map). [Arturo Magidin]