Currently there is no standard algorithm for testing if a graph can be embedded in a torus. It looks like this is because (1) there isn't too widespread of a need for one yet, and (2) inamong the currently suggestedavailable algorithms, there is a huge trade-off between algorithmic complexity and ease-of-implementation so there is no obvious choice.
It looks like one of the more popular algorithms is by Jiahua Yu in A Practical Torus Embedding Algorithm and Its Implementation (2011). Although the algorithms is exponential, it is sufficiently fast for small graphs and doesn't appear to be too difficult to implement.
Prior to Yu, like Gerry Myerson said in the comments, in Practical toroidality testing (1997) Neufeld and Myrvold describe an exponential algorithm for checking the toroidality of a graph. Two of Myrvold's students, J. Chambers in Hunting for torus obstructions (2002), and J. Woodcock in A Faster Algorithm for Torus Embedding (2004), describe implementations of this algorithm.
At the other end of the spectrum, in this paper (1995) Juvan, Marincek, and Mohar outline an approach to a linear time toroidality testing algorithm. Later, in this paper Juvan and Mohar present a polynomial time algorithm that is slightly less difficult to implement.