Well if its one of the characters it is most likely the voice actor will sing the song. For example Seth MacFarlane plays Stewie, Brian, Peter among others and sings their musical numbers, and the...
Well, assuming you are referring to the episode "Don't Make Me Over"
The song doesn't exactly have a real name but you could call it "Buy Me A Rainbow"