If we are handed the group presentation $\langle i,j,k \mid i^2=j^2=k^2=ijk \rangle$ and nothing more, can we deduce that this is the quaternion group?
Nothing in this presentation tells us that $i^2=j^2=k^2=ijk=-1$ and that $i^4=j^4=k^4=(ijk)^2=1$. Can we conclude these relations from the relation given in the presentation?
Yes, we can do it.
The cancellation laws immediately get us $i=jk$ and $k=ij$. Multiply the first by $i$ on the right, and $i^2=jki$, leading to $j=ki$ and completing that cycle.
Now, applying these laws $j^2=i^2$, $ij=k$, $jk=i$, we have the following chain of equalities: $$j^4i=j^2i^3=j^2ij^2=j^2kj=jij=jk=i$$ Apply the cancellation law to that and $j^4=1$. From there, $i^4=k^4=(ijk)^2=1$ follow easily.