Can I use the slider's device detection code?

Sure, you can use it on the pages, where our slider loads. We are using this JavaScript library:
https://github.com/hgoebl/mobile-detect.js

and you can see examples on that page, how you can use it. Also here is a simple one:

Example
var md = new MobileDetect(window.navigator.userAgent);
if(md.mobile()){
	console.log('this is a phone');
} else if(md.tablet()){
	console.log('this is a tablet');
} else {
	console.log('this is a computer');
}