I have a bottle of unopened 23 year old corked spanish white cooking wine
Yes, barring something really bizarre, it is safe.

It probably sucks, but the best way to know for sure is to taste it.

Know one thing, it is not any more "aged" in a positive way now than it was 23 years ago. It's just older. For more information check out the Wiki, Aging of Wine.