Digital alignment system for a laser beam