Enter passcode without touch screen [iTunes]
No your not able to do this.. You always need to prompt the password on your phone via touch.

Or.. you can try to connect with a wireless bluetooth keyboard, but still you will need to touch the screen to do this.