If you take as an axiom that identities are unique (call it proposition $A$), then there is a unique element $e$ such that $e*x=x$ for all $x\in \mathbb{Z}$ (call it porposition $B_{1}(e)$) and $x*e=x$ for all $x\in \mathbb{Z}$ (call it proposition $B_{2}(e)$).
In symbols: $A\Rightarrow (\exists e\in \mathbb{Z}(B_{1}(e) \wedge B_{2}(e)))$
Equivalently: $(\forall e\in \mathbb{Z}(¬B_{1}(e) \vee ¬ B_{2}(e)))\Rightarrow ¬A$
In other words, if you prove that for every element $e\in \mathbb{Z}$ such that $e*x=x$ for all $x\in \mathbb{Z}$ there exists an element $y\in \mathbb{Z}$ such that $y*e \neq y$, then you can deduce that an identity does not exist.
Warning: this is not a proof by contradiction, it is a proof by contrapositive. We used the implication $A\Rightarrow B$ in its equivalent form $¬ B \Rightarrow ¬ A$. But if I remember the logic course I took correctly, to prove this equivalence you are actually using the falsum deduction rule. So you are doing some sort of proof by contradiction implicitly.
If you are interested you can read this question.