Can an upper forearm amputee correctly control the Median and Ulnar nerves
Yes, severed nerves still convey neural responses from the brain.                

In fact, nerve potential recordings in the ulnar and median nerves of the stumps of arm amputees have already been successfully applied to control arm prosthetics (Jia et al. 2007; Kuiken et al., 2007.