System.Diagnostics.EventLog is the namespace you can use.

Try doing an internet search for that. There is a method called GetEVentLogs that might be what you need. It returns an Eventlog array you would probably have to loop through and turn into a string. That is as much as I know about it though.