You can do a simple address compare:
if(&ins == &cin){
//then you using cin, since there is only one cin object
}else{
//other istream
}
same for cout...
if(&outs == &cout || &outs == &cerr){
//then you using standard outputs: cout or cerr
}else{
//other ostream
}