You're looking for home automation from linux. There is a reference page
for that:
http://www.linuxha.com/
As someone else said, you may prefer something else than X10, but you'll
find many leads on that page.
A company that sells hardware for this kind of stuff is Smarthome:
http://www.smarthome.com/_/index.aspx
Another is X10.