Not really something that can be done without hand coding.
on failed login, you would need to update a database to record the IP address and the number of attempts.
then on accessing the login page, lookup up the ip address in the database, if it exists and the login attempts where 3 redirect to another page.