How can I use an old mac as an external display using software?

It seems ScreenRecycler does what you need. There's a trial version available, so you can try it.

screenshot