The big question would be WHY? The frequency is controlled to a very tight tolerance by the power company. Are you doing anything geeky at home which would somehow affect the waveshape??
To answer your question, powerline voltage monitors are very common, with a recorder, and these days I would assume any model would have some kind of serial or USB interface.
Frequency and waveshape are monitored with an oscilloscope, and a data interface should be available on those as well. Simple programs are undoubtedly available to display the data.
As always, let your fingers do the walking>>> GOOGLE