GeneralizingTo say a little more about the structure of $\mathcal O_K[a]$, the key fact is that as a ring, it is $\mathcal O_K$ with some number of primes inverted. Hence as a $\mathbb Z$-module it is an extension of a sum of modules isomorphic to $\mathbb Q_p/\mathbb Z_p$ by the finite free $\mathbb Z$-module $\mathcal O_K$. Specifically, the multiplicity of $\mathbb Q_p/\mathbb Z_p$ is the total degree times ramification index of the primes lying over $p$ at which $a$ is not integral. Because $\mathbb Z[a]$ is a finite-index submodule of this, it is easy to see that it can also be expressed as a similar extension.
This should be enough information about the $\mathbb Z$-module structure for most practical purposes in number theory. However, as YCor points out, knowing the rank of $\mathcal O_K$ and the multiplicity of $\mathbb Q_p/\mathbb Z_p$ does not come close to uniquely determining $\mathcal O_K[a]$ or $\mathbb Z[a]$, except in some special cases. In particular, he raises the question of determining when $\mathbb Z[a]$ and $\mathbb Z[b]$ are isomorphic as $\mathbb Z$-modules.
Generalizing the case where $a$ is integral, there is one case where the problem simplifies considerably. Suppose there is some proper subfield $L$ of $K$ and ring extension $\mathcal O_L'$ with $\mathcal O_L \subseteq \mathcal O_L' \subseteq \mathcal O_L$ such that $\mathcal O_K[a]= \mathcal O_L' \otimes_{\mathcal O_L} \mathcal O_K$. Then $\mathcal O_K[a]$ is a locally free module over $\mathcal O_L'$ (because $\mathcal O_K$ is a locally free module over $\mathcal O_L$) and $\mathbb Z[a]$ is a finite index submodule of $\mathcal O_K[a]$. This is only a small amount of extra data beyond $\mathcal O_L[a]$ and it seems impossible to recover much about $a$ from this data.
Thus, let us focus on the case where there does not exist such a proper subfield $L$ and ring $\mathcal O_L'$. Then, following YCor's suggestion, we can show that the ring of $\mathbb Z$-module endomorphisms of $\mathbb Z[a]$ is $\mathbb Z[a]$. In particular, this implies that (in this case) the ring $\mathbb Z[a]$ can be recovered from the $\mathbb Z$-module structure and so the ring $\mathbb Z[a]$ is the$\mathbb Z[b]$ are only invariant that determines isomorphismisomorphic as $\mathbb Z$-modules if they are already isomorphic as rings.