You may create template function like this:

template <class T>
bool IsPointerType()
{
return strchr(typeid(T).name(), '*') != 0;
}

Then check if some type is pointer or not:

cout << IsPointerType<int>() << endl;
cout << IsPointerType<int*>() << endl;

In second case the answer is "1" (in first "0"). In your template class checking is similiar but
I suggest to do this in constructor and then set some flag:

SomeClass<T>::SomeClass()
{
// this is member flag variable of type bool
_isPointerType = IsPointerType<T>();
// rest of constructor stuff
}

Then you may query this flag to know if type is pointer or not.