If you have several, you may consider creating a folder on the external drive containing the aliases. When you reconnect the drive, drag the aliases from the folder to your sidebar. AFAIK, there's no way to keep them on the sidebar if the drive isn't connected, as they would be dead links.