Yes. Use any algorithm for solving the discrete log problem. This is well-studied; do a search on "discrete log" problem and you will find lots of information, both on this site and on Wikipedia (eg [this list](http://en.wikipedia.org/wiki/Discrete_logarithm#Algorithms)).