The second (pentatonic) solo is played on an Emin (Aeolian mode) progression (Emin/Gmaj/Amin/Cmaj/Dmaj/Gmaj/Emin) which is in Gmaj Key (G A B C D E F# G) .
And the first solo (the one exaclty before the pentatonic) is E harmonic minor scale (E F# G A B C D# E).
The progression is (Emin/Cmaj/Bmaj/Amin/Emin).