Just start the usual set of programs you're using, run them for a while and then start Activity Monitor - under the System Memory tab you can see which amount of memory is in use. If it's below physical memory you'd gain nothing by upgrading the RAM.
512 MB might be slightly low at times but usually 1 GB is enough, provided you're not working with very large files and/or loads of programs.