Asking how to prove a theorem about $m^2$ in $\Bbb Z$ using $\sf ZFC$ is similar to asking how to write a JavaScript interpreter from complete scratch, in machine code. It's not that it's not possible, but it's just that this is not what you're supposed to do if you want to write a JavaScript interpreter. For one, it's a lot easier to use an operating system that someone else already wrote, and maybe a different programming language (although you can definitely still insist on writing machine code instructions by hand if you really want to).
When we say that $\sf ZFC$ is a foundation of mathematics, we don't mean that we want to, or even should be able to prove every theorem of mathematics in the language of set theory. For one, much like machine code, the language of set theory is very minimal and is untyped. In particular, the symbol $\Bbb Z$, the concept of "even integer", and the notion of multiplication are not part of this language.
So what do we mean, and how do we do it? Well, we show that in $\sf ZFC$ we can interpret the integers $\Bbb Z$, as some set, and indeed there are many different ways to arrive to such a set. We should prove that any two interpretations of $\Bbb Z$ are isomorphic, and that if we treat $\Bbb Z$ as a ring (i.e. with $0,1,+$ and $\cdot$, and maybe even $\leq$) then this isomorphism is unique. This means that now it doesn't matter which copy of $\Bbb Z$ we used for our proof, we can translate it to any other interpretation.
Finally, we show that all the rules of logic that we are used to naively, or at least "pre-set theory" and are not obviously contradictory can be interpreted in $\sf ZFC$. This allows us to take any proof that we write in the usual language of rings, and turn it into a proof from $\sf ZFC$.
So how do you prove that? Well, you first prove all of those other things. You build an operating system, a compiler for higher-level language, and with that another even higher-level language, and finally, we write an interpreter, and we compile it. And then we have an interpreter. We didn't write the machine code from scratch, we didn't even write the machine code inside the operating system. But we still ended up with an interpreter.
Similarly, you can write a proof that shows pretty much all the things that I wrote, but then, at the very end, your proof will just be a lot of machinery, and the same proof that you know from every other freshman course, or whatever. Because $2$ is a prime number, and prime numbers satisfy $p\mid nm\iff p\mid n$ or $p\mid m$:
$$2\mid m^2\iff 2\mid m\text{ or }2\mid m\iff 2\mid m.$$
(Or some ad-hoc proof of this fact.)