Yes. The Roland TD-17 can record Bluetooth audio and audio from a device connected to the MIX IN jack together with the drum sounds.
On the REC STANDBY screen, set the recording Target to "ALL."
To balance the recording level between the drums and the Bluetooth audio before recording, see "TD-17: How to Adjust the Volume of MIX IN and Bluetooth Audio".