LabView has a VI that does that.
From your diagram, goto the Analyze palette, then select Waveform Monitoring, then Waveform Peak Detection.vi. You specify the threshhold and width and the VI tells you how many peaks it found and their location and amplitude. If you want to see the highest two peaks, you can use the Array Max and Min function (on the Array palette) and then search the array for the next highest: use a For loop to auto-index the array, a shift register for the next highest value (initilized to 0 or some number below any of your expected values), and search for a value > prvious but < max.