You can do this with GAP. The example below assumes that you have the polycyclic package installed.
First, you tell GAP which group you want to work with. Luckily, Heisenberg groups are polycyclic, and the polycyclic package provides a command to obtain them:
Pcp-group with orders [ 0, 0, 0 ]
Note that we could have also defined it by some other means if polycyclic was not available (e.g. as a matrix group), but this way is the most convenient. Now let's form the integral group ring:
<free left module over Integers, and ring-with-one, with 6 generators>
The extra three generators come from the inverses of x, y and z (note that internally it calls them g1,g2,g3; it would be possible to change that with some effort, but that's beyond the scope here). Let's assign the corresponding generators of the group ring to variables x, y, z, and verify the relations you have given:
gap> x:=ZG.1;; y:=ZG.2;; z:=ZG.3;;
gap> x*z=z*x and y*z=z*y and y*x=x*y*z;
Here is an example of powering a group element (this works with more complicated ones, too, but I picked a small one to keep the output readable).
I hope this helps.