If I have a lot of old computers like pentium II's and such, could I put them to good use by using them to mine (considering cost, time, and electricity)?
Obviously they are not good to sell or anything.
Costwise, no. Mining for Bitcoins with anything other than ASIC rigs is no longer profitable and is therefore not recommended. You won't even be helping secure the blockchain by doing so because a single overclocked U2 can generate more hashes per second than an entire room full of Pentium II's (assuming that you intend to mine via CPU hashing only).
If you really have your heart set on CPU mining, then I recommend taking a look at x11-based coins.
Alternatively, you can use those computers for GPU mining. Some Quark-based coins can still be mined fairly easily with a decent GPU rig.