I have never tried it, but may just be a simple change of the TRISB values for PICAXE 'Outputs 5,6,7' = i.c. pins 13,12,11 = PIC Port RB.4, RB.5, RB.6.
They tie up with TRISB (Address 86h) bits 4,5,6 on the PIC 16F.
Poking those bits to a 1 will set them as inputs. 1=Input 0=Output. Easy to remember: 1 looks like I and 0 looks like 0.
Check out the PIC Data Sheet for the PIC 16F677 from microchip.com.
TRISx determines the 'direction' of a pin on a PIC.
As to whether it'll work or that it won't upset something else I really don't know.