That can work, but it can also generate partial success. Still, it is worth a shot, if you happen to have the upgraded version of Melodyne.
If you do not have that upgrade version of Melodyne, you could download its trial and see if that would do it for you.
Please note that the above are offered up in the event your piano 'lick' is polyphonic (more than a single note played at one time - like chords).
If that is NOT the case, and your lick is actually a string of single notes, then the basic version of Melodyne that comes with X3 Producer should be able to handle it. Just drag that keyboard lick to an empty midi track (if memory serves), and Melodyne should convert it to midi automatically.
In any case, once it gets into midi data, you can click on the clip to highlight it, then click View>Staff View, and you should see the notes transcribed for you by Sonar. This is handy, but not as fancy as say using Finale, but it does work.
In addition, Finale routinely offers a basic notation software application called Finale Notepad, for free, if you go to the Finale site and look for it. That would give you some nice basic notation software, for free, and you can open midi tracks up into it and get things scored for your review.
I hope any of the above proves helpful,
Bob Bone