if you have Perl, you can use the MP3::Tag module.
eg
use MP3::Tag;
# set filename of MP3 track
my $filename = "test.mp3";
# create new MP3-Tag object
my $mp3 = MP3::Tag->new($filename);
# get tag information
my ($title, $track, $artist, $album, $comment, $year, $genre) = $mp3->autoinfo();
print "$title, $track, $artist, $album, $comment, $year, $genre\n";
it is able to update tag info as well. Read its documentation for how to edit the tags.