Implement list_devices.