How can I detect if the computer is connected to internet (also please mention if I need any components)?