1. convert into DFAs and minimize,
  2. the languages are equal iff the minimized DFAs are isomorphic.
Another algorithm can be found on page 155 of Sipser.