It depends on the alcohol content and how you are storing it.
The higher the alcohol content the lower the temperature it can cope with in storage before freezing.
Beer in glass bottles should be ok down to around -5c as long as its not over primed. I have not / would not want to test that assumption directly but my garage got to -12c a few years back and (commercial) beer in glass bottles stored their survived ok, ie without exploding. In any case i bottle my homebrew beer in plastic bottles to avoid the issue.
Same goes for wine which given its usually a higher alcohol content could take lower temperatures but again that would depend on whether its in a glass bottle sealed with a cork, plastic or some other type of storage container.
In fact if its in a glass bottle with a cork, then its likely the cork would be ejected if the content froze and expanded. I have seen this happen after leaving a bottle in an industrial freezer for to long once :whistle:
Interesting subject though, i am more concerned with high temperatures rather than low as i have had wine spoil in storage where temps reached high 20's and beyond. Either way its very annoying when you lose beer or wine to extreme temperature fluctuations.
Happy brewing.