From your question, it's not clear what kind of help you may need.
I would advise you to start here:
http://en.wikipedia.org/wiki/Z-transform[
^].
If you follow at the further links from this article, you can find some implementations. Or implement the algorithm from scratch, which should not be too hard. If you face problems, we would gladly try to help you.
—SA