Two-loop calculations for the propagators of gluonic currents