A MIDI file contains timestamped events, i.e., it records every time you pressed or released a key.
Both Finale and Sibelius can import MIDI files. If the actual tempo of the song is known (and if the MIDI file contains this tempo information), it might be possible to deduce what note values (durations) these timestamps correspond to. However, humans never have perfect timing (accidentally or deliberately), so the result of such an import usually is not perfect.
MIDI sequencers typically avoid this problem by showing the notes in a piano roll instead: