There exists a relatively simple necessary and sufficient condition. A power series $ f\in \mathbb Q((X))$ lies in the field of fractions of $\mathbb Z[[X]]$ if and only if it satisfies the following two conditions
- There exist only finitely many primes $p$ appearing in the denominators of coefficients of $f$.
- For each $p$ appearing in the denominators, there exists a monic polynomial $Q \in \mathbb Z_p[X]$ such that $Q f \in \mathbb Z_p[[X]] [\frac{1}{X}, \frac{1}{p} ]$, in other words the powers of $p$ appearing in the denominators of coefficients of $Q f$ are bounded.
Another way of saying the second condition is that $f$ is the sum of an element in $Z_p[[X]] [ \frac{1}{p} ]$ plus an element in $\mathbb Q_p(X)$.
Proof of "only if"
Given a ratio $\frac{A}{B}$ with $A, B \in \mathbb Z[[X]]$, the only primes appearing in the denominators of coefficients of $\frac{A}{B}$ are the primes dividing the leading coefficient of $B$, of which there are finitely many.
Now fix one of these primes. By the Weierstrass preparation theorem in $\mathbb Z_p[[X]]$, we can write $B$ as an invertible element $U$ of $\mathbb Z_p[[X]]$, times a power of $p$, times a monic polynomial $Q \in \mathbb Z_p[X]$. (Theorem 1.3 of the paper Jesse Elliott linked, after dividing by a suitable power of $p$ to make one of the coefficients zero. ) Writing $f =\frac{A}{B} = frac{A}{U Q p^n}$, we see that $Q f = \frac{A}{U p^n} \in \mathbb Z_p[[X]] [\frac{1}{p} ]$ because $U$ is invertible. This verifies the second condition.
Proof of "if"
Let $p_1,\dots, p_m$ be the primes appearing in the denominator of $m$ and let $Q_{p_1}, \dots, Q_{p_m}$ be the $p$-adic power series guaranteed by the condition. We will show the existence for each $p$ of a power series $U_{p} \in \mathbb Z_p[[X]]^\times $ such that $U_{p} Q_{p} \in \mathbb Z[[X]]$.
To do this, we can assume by removing a factor of $X^k$ from $Q_{p}$ that the leading coefficient of $Q_{p}$ is nonzero. Because it is a nonzero $p$-adic number, it has the form $p^{n_i}$ times a $p$-adic unit for some natural number $n_i$. Let the first coefficient of $U_{p_i}$ be the inverse $p$-adic unit, and then choose inductively for each $n$ the coefficient of $X^n$ in $U_{p}$ so that the coefficient of $X^n$ in $Q_{p} U_{p}$ is an integer in the range $\{0,\dots, p^{n_i}-1\}$. This is possible since that range hits every element of $\mathbb Z_p / p^{n_i} \mathbb Z_p$.
Now $\prod_{i=1}^m (Q_{p_i} U_{p_i} ) \in \mathbb Z[[X]]$, and $$f \prod_{i=1}^m (Q_{p_i} U_{p_i} ) = Q_{p_i} f U_{p_i} \prod_{j=1}^{i-1}(Q_{p_j} U_{p_j} )\prod_{j=i+1}^{m}(Q_{p_j} U_{p_j} ) $$ is the product of $Q_{p_i} f \in \mathbb Z_p[[X]] [\frac{1}{X}, \frac{1}{p} ] $ with $U_{p_i} \in \mathbb Z_p[[X]]$ and several terms $Q_{p_j} U_{p_j}\in \mathbb Z[[X]] \subset \mathbb Z_p[[X]] $. Thus $f \prod_{i=1}^m (Q_{p_i} U_{p_i} )$ lies in $\mathbb Z_p[[X]] [\frac{1}{X}, \frac{1}{p} ] $, i.e. the powers of $p$ dividing the denominators of its coefficients are bounded. Since these primes $p$ are the only primes that divide the denominators of coefficients of $f$, and no primes divide the denominators of the coefficients of $(Q_{p_j} U_{p_j} )$, it follows that the coefficients of $f \prod_{i=1}^m (Q_{p_i} U_{p_i} )$ have bounded denominators, and thus we may clear denominators by multiplying by a natural number, exhibiting $f$ as a ratio in $\mathbb Z[[X]]$.
Proof that the alternative second condition is equivalent:
That such $f$ satisfy the second condition is clear. For the converse, given $A \in \mathbb Z_p[[X]]$ and $Q$ monic in $\mathbb Z_p[X]$ of degree $n$, to show that $\frac{A}{Q}$ has this form, we may assume by dividing $Q$ by any factors that are a unit in $\mathbb Z_p[[X]]$ that all non-leading coefficients of $Q$ are divisible by $p$. One then checks that $A= BQ +R $ for $B \in \mathbb Z_p[[X]]$ and $R \in \mathbb Z_p[X]$ of degree at most $n$, one checks that the natural map $\mathbb Z_p[X]/Q \to \mathbb Z_p[[x]]/Q$ is an isomorphism by subtracting a suitable multiple of $Q$ to cancel the degree $n$ term mod $p$, then the degree $n+1$ term mod $p$, and so on, and then the degree $n$ term mod $p^2$, and the degree $n+1$ term mod $p^2$, and so on, etc.