Pms-scrobbler is a project mainly written in Scala, it's free.
Last.fm scrobbler plugin for PS3 Media Server