'Ask an Astronomer' explains how we detect planets around other stars.