In short, no.
What you see is just General MIDI patches . However, how these instruments sound depends on the synthesizer that generates the sound, and are not defined by MIDI. You can completely choose completely different tools than the patches shown.
Thus, 41 is defined as a violin, 42 is a viola, 43 is a cello and 44 double bass. But don't expect them to always be used that way.
As for the 1st / 2nd violin, it depends on how the person decided to create the MIDI file, and there is no programmatic way to find this. For example, if the patch for the tool is the same, I would expect that all use of this tool will be on the same channel. If the software that they used for some reason decided to break it. (For example, if the original estimate is split.)
I believe that there is a place in the MIDI file for the names of tracks, etc., but you will not see them in every MIDI file, and they are free-form names, so they will not be marked in any way, use it programmatically.
MIDI is intended only for controlling synthesizers and is not intended to represent musical appreciation, as we people understand.
Brad source share