Send and receive text messages on computer using galaxy s2
This feature isn't built into Android, but there is an app - DeskSMS, that allows you to do what you are asking.

It does, however, require the use of a browser plugin.