Many experts suspect that Wiles's proof of FLT can be converted into a proof in Peano arithmetic which is much weaker than set theory, see Are there non-standard counterexamples to the Fermat Last Theorem? and What is known about the relationship between Fermat's last theorem and Peano Arithmetic?
If this is possible then we only need axioms of set theory sufficient to derive Peano arithmetic. This would mean that axioms of choice, infinity and replacement are not needed, they are used to deal with infinite sets. What is left is a theory of finite sets, which is more or less equivalent to arithmetic, see Systems the Peano axioms can be derived in. But so far whether it can be done or not is an open question. As Colin McLarty writes in What Does It Take to Prove Fermat's Last Theorem:
"Angus Macintyre lays out
a program to express the Modularity Thesis (MT) central to Wiles [1995]
as a statement of arithmetic and argues that it is provable in PA. This
program could lead to a PA proof of MT, and possibly one of FLT without
using MT. It calls for substantial new work in arithmetic. While closely
based on Wiles [1995] it is no routine adaptation."
Generally speaking, tracking which axioms are actually used in a proof is a tedious but routine exercise. It is not very informative though. Most proofs are using results whose use can be avoided to simplify or shorten proofs. Wiles's proof uses the aformentioned modularity thesis, "universes", axiom of choice constructions, and other very strong tools that are not essential. As is it uses all ZFC axioms. Calculus, as is, uses them all as well (possibly excepting replacement), but most of it can be done without the axiom of choice.
On the other hand, figuring out what is minimally needed to prove a complex theorem is a non-trivial question in its own right, and is related to the so-called independence results, a field in mathematical logic.