No, you can't, EasyRider. MIDI is nothing but a series of digital codes that identify musical events and properties like pitch, velocity, timbre, duration, volume, etc. and cannot be built up out of pure sound (which is a complex mixture of vibrations) or its electric representation.A MIDI sequence can be built only by pressing the keys of a keyboard (equipped with a MIDI output) or entering note by note in the staff, by means of a program like Cakewalk, EasyWriter, Finale, Sibelius, Encore, etc.
However it is theoretically possible to make an extremely fine analysis of sound and extract those events. It would take a supercomputer and some decades of software development. Possibly we will see an approximation within ten years.
Un abrazo - Andrés