If it's already running OS X then you need to obtain an OS X CD (somehow) and boot from this. There is a password reset utility provided which allows you to reset the administrative password and thus gain access.
If it's not running OS X (possible, but unlikely) then you can either boot with SHIFT held down which will bypass most extensions or just reformat and install OS X.