You'll need to prove that the function is _injective_.
Now, "the powers of 10" needs to be defined. The most natural definition of that phrase is actually that "powers of 10" means _the range of the function you have just defined_.
Then you just need to appeal to the general fact that an injective function is a bijection onto its range.
* * *
Why is it injective? That depends on what definition you have for $10^y$, but if we assume a recursive definition along the lines of $$ 10^0 = 1 \\\ 10^{n+1} = 10^n\cdot 10 $$
then you can prove by induction on $n$ that $10^n\ge 1$ and then by induction on $k$ that $10^n < 10^{n+k+1}$.
In particular, if you have $a\
e b$ then either $a=b+k+1$ for some $k$ or $b=a+k+1$ for some $k$, and the second induction now shows that $10^a\
e 10^b$.