Well, the ideal way to do that would be to plug the pc to the tv via a HDMI cable
If that's not feasible and your tv isn't DLNA compliant, you can still resort to the PS3 augmenting its multimedia capabilities via a UPnP media server like those I mentioned before.
The PS3 can play most media files, but is not compatible with some formats (guess what - mkv can't be played directly if you where thinking about it). For these (ridiculous) shortcomings, PS3 Media Server, for example, can exploit mplayer or VLC (depending on what's available on the system) to remux on the fly those contents making them compatible with the PS3.
You can even overlay on the fly ssa/ass softsubs, if any are found in the source file