As Vladimir notes in the comments to this answer, I am assuming that if two quaternion algebras are non-isomorphic, then their Lie algebras are non-isomorphic. This is a legitimate worry, as if $K$ is a quadratic extension of $\mathbb Q$, then ${\rm Lie}(K)\simeq {\rm Lie}(\mathbb Q^2)$. What happens for quaternion algebras? First, note that for a field $k$ and a quaternion division algebra $D$ over $k$, ${\rm Lie}\big(M_2(k)\big)$ is not isomorphic to ${\rm Lie}(D)$, since, for example, ${\rm Lie}\big(M_2(k)\big)$ has a solvable three-dimensional subalgebra and ${\rm Lie}(D)$ does not (seeing this by explicitly calculating the brackets of basis elements). Second, for two quaternion algebras $D_1$ and $D_2$, if a quadratic extension $K$ splits $D_1$ but not $D_2$, then $D_1\otimes_\mathbb Q K\simeq M_2(K)$, but $D_2\otimes_\mathbb Q K$ remains a division algebra. Since ${\rm Lie}(D_1\otimes_\mathbb Q K)\not\simeq {\rm Lie}(D_2\otimes_\mathbb Q K)$, we have ${\rm Lie}(D_1)\not\simeq {\rm Lie}(D_2)$. Finally, since quaternion algebras over $\mathbb Q$ are determined by the primes where they split, we can always find a quadratic extension $K$ so that exactly one of the $D_i\otimes_\mathbb Q K$ splits.
This argument only partly extends to general division algebras, since there are non-isomorphic division algebras with the same splitting field.
After I typed the above, I happened to see that Chapter X of Jacobson's "Lie Algebras" is devoted to classifying simple Lie algebras over arbitrary fields, which he also does in this paper. In particular, he proves that for central simple algebras $A$ and $B$ over a field $k$,
An isomorphism between ${\rm Lie}(A)$ and ${\rm Lie}(B)$ extends uniquely to either an isomorphism or the negative of an anti-isomorphism between $A$ and $B$. If they are quaternion algebras, it is always an isomorphism.

