Alert for networked computers

Is there a way to alert me when another computer joins the network? As in, when it’s turned on and booted up, it gives me a little message (on a computer that was laready on) or something.